 
-----------------------------
Generating Binomial N samples
p =  0.01 N =  100
Number of Samples =  2500000
  
  Generating Binomial Distribution samples.
  Date and time plus nanoseconds
Thu Jun 19 15:22:03 EDT 2014
886328575
  
[1] 0.01
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] -0.0002252  0.0010188  0.0100132  0.0642192
[1] "Relative difference of empirical moments from theoretical ones:"
[1] -0.0002252000  0.0005119598  0.0020268815  0.0043709444
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] 3.648069e-17 1.469149e-03 6.951037e-03 3.205992e-02
[1] "Relative difference of empirical central moments from theoretical ones (except first):"
[1] 0.000738266 0.001407035 0.002182091
                         test   P.value KS.test
1                  Chi Square 0.6403056  Passed
2            Likelihood Ratio 0.6403056  Passed
3               Freeman-Tukey 0.3358218  Passed
4 Power Divergence (lambda=2) 0.3486146  Passed
 
-----------------------------
Taking first  1000000 samples
p =  0.01 N =  100
 
[1] 0.01
[1] 100
[1] "Absolute difference of empirical moments from theoretical ones:"
[1] 0.001262 0.006512 0.031880 0.167630
[1] "Relative difference of empirical moments from theoretical ones:"
[1] 0.001262000 0.003272362 0.006453180 0.011409382
[1] "Absolute difference of empirical central moments from theoretical ones:"
[1] -9.663825e-17  3.986407e-03  1.236677e-02  6.916450e-02

	One-sample Kolmogorov-Smirnov test

data:  bin.unif
D = 0.0003, p-value = 0.734
alternative hypothesis: two-sided

